package com.hand.qt24953.ssmtrain.mapper;

import com.hand.qt24953.ssmtrain.entity.Item;
import com.hand.qt24953.ssmtrain.entity.ItemExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author qiutao
 * @date 2019/7/19
 */
@Mapper
public interface ItemMapper {
    /**
     * 获取最大物料编码
     * @return
     */
    String getMaxItemCode();

    long countByExample(ItemExample example);

    int deleteByExample(ItemExample example);

    int deleteByPrimaryKey(Long itemId);

    int insert(Item record);

    int insertSelective(Item record);

    List<Item> selectByExample(ItemExample example);

    Item selectByPrimaryKey(Long itemId);

    int updateByExampleSelective(@Param("record") Item record, @Param("example") ItemExample example);

    int updateByExample(@Param("record") Item record, @Param("example") ItemExample example);

    int updateByPrimaryKeySelective(Item record);

    int updateByPrimaryKey(Item record);
}